<?php

namespace App\Modules\Admin\Services\Order;

use App\Modules\Admin\Entities\Water\WaterCardTransactionModel;
use App\Modules\Admin\Services\BaseService;

class IntakeRechargeService extends BaseService
{

    public function __construct(WaterCardTransactionModel $model)
    {
        $this->model = $model;

    }
    public function lists(array $params) : array
    {
        $params['where_callback'] = function ($query) use ($params) {
            $request = request();
            $user_id = $request->input('user_id', '');
            $query->where('user_id',$user_id);
            $query->where('status',1);
        };
        $lists = parent::lists($params);
        return $lists; // TODO: Change the autogenerated stub
    }


}
